﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SPMS.Log.Core
{
    /// <summary>
    /// 日志过滤器接口
    /// </summary>
    /// <remarks>通过实现日志过滤接口来实现自定义的日志过滤策略</remarks>
    /// <history>
    /// [zanezeng]               2009/9/7 11:06    创建
    /// </history>
    public interface ILogFilter
    {
        /// <summary>
        /// 判断给定的日志条目是否可以输出
        /// </summary>
        /// <param name="entry">要判定是否需要输出的日志条目</param>
        /// <returns>判定结果</returns>
        /// <remarks></remarks>
        /// <history>
        /// [zanezeng]               2009/9/22 17:27    创建
        /// </history>
        FilterDecisionEnum Decide(LogEntry entry);
    }
}
